# must set CUDA_VISIBLE_DEVICES on the shell, i.e. calling
###
 # @Author: xushaocong
 # @Date: 2022-05-22 14:56:57
 # @LastEditTime: 2022-05-27 11:20:32
 # @LastEditors: xushaocong
 # @Description: 
 # @FilePath: /deep_motion_mag/run_on_test_videos.sh
 # email: xushaocong@stu.xmu.edu.cn
### 
#   CUDA_VISIBLE_DEVICES=0 sh scripts/run_exp.sh urban_cg2real_ac
EXP_NAME="$1"
VIDEO="$2"
AMPLIFICATION_FACTOR="$3"
DYNAMIC_MODE=${4:-"no"}
#? 这是干嘛下面不是不覆盖了吗
OUT_DIR=data/output/"$VIDEO"_"$EXP_NAME"_"$AMPLIFICATION_FACTOR" 
VID_DIR=data/vids/"$VIDEO"
OUT_DIR=data/output/"$VIDEO"
if [ ! -d "$OUT_DIR" ]; then
    mkdir -p "$OUT_DIR"
fi

FLAGS="--phase=run --vid_dir=$VID_DIR --out_dir=$OUT_DIR --amplification_factor=$AMPLIFICATION_FACTOR"
if [ "$DYNAMIC_MODE" = yes ] ; then
    FLAGS="$FLAGS"" --velocity_mag"
fi
echo $FLAGS
# python main.py --config_file=configs/"$EXP_NAME".conf \
#     $FLAGS


#*mine=====================================
# python main.py --config_file=configs/o3f_hmhm2_bg_qnoise_mix4_nl_n_t_ds3.conf \
# --phase=run --vid_dir=baby --out_dir=data/output/baby \
# --amplification_factor=10 2>&1 | tee -a logs/test.log
#*mine=====================================
